package com.jinmdz.app.dao.dao;

import com.jinmdz.app.dao.dao.provider.ColdStorageProvider;
import com.jinmdz.app.dao.model.coldStorageEquipment.ColdStorageEquipmentView;
import com.jinmdz.app.dao.model.coldstorage.ColdStorageView;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.HashMap;

/**
 * pda冷藏Dao
 *
 * @author Wangshengtao
 * @date 2020-08-24 09:30
 */
public interface ColdStorageDao {

    /**
     * 按照业务编码查询逝者冷藏信息
     *
     * @param businessCode 业务编码
     * @return
     * @author Wangshengtao
     * @date 2020-08-24 15:30
     */
    @SelectProvider(type = ColdStorageProvider.class, method = "getColdStorageViewByBusinessCode")
    ColdStorageView getColdStorageViewByBusinessCode(@Param("businessCode") String businessCode);


    /**
     * 按照 设备编码查询逝者冷藏柜信息
     * （如果 处理流程状态 非空 且 ！=3 说明是 占用状态，前端判断）
     *
     * @param equipmentCode 设备编码
     * @return
     * @author Wangshengtao
     * @date 2020-08-24 15:30
     */
    @SelectProvider(type = ColdStorageProvider.class, method = "getColdStorageEquipmentByEquipmentCode")
    HashMap<String ,Object> getColdStorageEquipmentByEquipmentCode(@Param("qrCodeMapData") HashMap<String ,Object> qrCodeMapData);

}